import request from '@/utils/request.js'
//添加购物车
export const addshopcart = (addcart) => {
  return request.post('/user/shoppingCart/add', addcart)
}

//查询购物车
export const queryshopcart = () => {
  return request.get('/user/shoppingCart/list')
}

//单个删除购物车商品
export const getcount = (count, id) => {
  return request.get(`/user/shoppingCart/${count}`, {
    id: id
  })
}


// 清空购物车
export const cleancart = () => {
  return request.delete('/user/shoppingCart/clean')
}